# -*- coding: utf-8 -*-
# ****************************************************
# Author: yizuoliang
# Create: 2024/6/24
# Last Modified: 2024/6/24
# Last Editor:
# Filename: __init__.py
# Description:  用户类
# ***************************************************
from flask_login import UserMixin


class User(UserMixin):
    def __init__(self, id, username, password, enable):
        self.id = id
        self.username = username
        self.password = password
        self.enable = enable

    @classmethod
    def get(cls, user_id):
        return User(12, "yizuoliang", "password", 1)
